/*
 * 文  件   名: Message.java
 * 版         本: docrepository-core(Anttribe). All rights reserved
 * 描         述: <描述>
 * 修   改  人: zhaoyong
 * 修改时 间: 2014年11月24日
 */
package org.anttribe.docrepository.message.domain;

import java.sql.Timestamp;

import org.anttribe.docrepository.user.domain.UserInfo;
import org.anttribe.saturn.common.utils.UUIDUtils;

/**
 * 消息实体抽象
 * 
 * @author zhaoyong
 * @version 2014年11月24日
 */
public class Message
{
    /**
     * 消息Id
     */
    private String messageId = UUIDUtils.getRandomUUID();
    
    /**
     * 消息标题
     */
    private String title;
    
    /**
     * 消息内容
     */
    private String content;
    
    /**
     * 发送时间
     */
    private Timestamp sendTime;
    
    /**
     * 是否已被阅读
     */
    private boolean hasRead;
    
    /**
     * 发送者
     */
    private UserInfo sender;
    
    /**
     * 接收者
     */
    private UserInfo receiver;
    
    public String getMessageId()
    {
        return messageId;
    }
    
    public void setMessageId(String messageId)
    {
        this.messageId = messageId;
    }
    
    public String getTitle()
    {
        return title;
    }
    
    public void setTitle(String title)
    {
        this.title = title;
    }
    
    public String getContent()
    {
        return content;
    }
    
    public void setContent(String content)
    {
        this.content = content;
    }
    
    public Timestamp getSendTime()
    {
        return sendTime;
    }
    
    public void setSendTime(Timestamp sendTime)
    {
        this.sendTime = sendTime;
    }
    
    public boolean isHasRead()
    {
        return hasRead;
    }
    
    public void setHasRead(boolean hasRead)
    {
        this.hasRead = hasRead;
    }
    
    public UserInfo getSender()
    {
        return sender;
    }
    
    public void setSender(UserInfo sender)
    {
        this.sender = sender;
    }
    
    public UserInfo getReceiver()
    {
        return receiver;
    }
    
    public void setReceiver(UserInfo receiver)
    {
        this.receiver = receiver;
    }
}